<?php
include_once("./_common.php");

$sqlw = "select vi_area, count(*)
           from visit_record 
          where vi_area = '$branch'";
$rstw = sql_query($sqlw);

$liw = mysql_fetch_assoc($rstw);

$this_no = $liw['count(*)'] + 1;

echo $this_no;
?>
